#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	/*FILE* p = fopen("data.txt", "w");
	fprintf(p,"% d,% c" , 5, 'a');
	fclose(p);*/
	FILE* q = fopen("data.txt", "r");
	int a;
	char b;
	fscanf(q, "%d,%c",&a,&b);
	printf("%d %c\n", a,b);
	fprintf(stdout,"%d,%c", 5, 'a');
	fclose(q);
	return 0;
}